package com.chixing.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//@RestController = @Controller + ResponseBody(该类中方法的返回值 转换成json格式)
@RestController
@RequestMapping
public class HelloController {

    @GetMapping("/hello")
    public String test(){
        return "Hello,SpringBoot";
    }
}
